Integrand size = 18, antiderivative size = 316 \[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {120 i b x \operatorname {PolyLog}\left (4,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {120 i b x \operatorname {PolyLog}\left (4,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {240 i b \operatorname {PolyLog}\left (6,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6}-\frac {240 i b \operatorname {PolyLog}\left (6,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6} \]
[Out]
Time = 0.34 (sec) , antiderivative size = 316, normalized size of antiderivative = 1.00, number of steps used = 16, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.389, Rules used = {14, 4290, 4268, 2611, 6744, 2320, 6724} \[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {240 i b \operatorname {PolyLog}\left (6,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6}-\frac {240 i b \operatorname {PolyLog}\left (6,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6}+\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {120 i b x \operatorname {PolyLog}\left (4,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {120 i b x \operatorname {PolyLog}\left (4,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}-\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2} \]
[In]
[Out]
Rule 14
Rule 2320
Rule 2611
Rule 4268
Rule 4290
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = \int \left (a x^2+b x^2 \csc \left (c+d \sqrt {x}\right )\right ) \, dx \\ & = \frac {a x^3}{3}+b \int x^2 \csc \left (c+d \sqrt {x}\right ) \, dx \\ & = \frac {a x^3}{3}+(2 b) \text {Subst}\left (\int x^5 \csc (c+d x) \, dx,x,\sqrt {x}\right ) \\ & = \frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}-\frac {(10 b) \text {Subst}\left (\int x^4 \log \left (1-e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d}+\frac {(10 b) \text {Subst}\left (\int x^4 \log \left (1+e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d} \\ & = \frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {(40 i b) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (2,-e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2}+\frac {(40 i b) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (2,e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2} \\ & = \frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {(120 b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (3,-e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^3}-\frac {(120 b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (3,e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^3} \\ & = \frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {120 i b x \operatorname {PolyLog}\left (4,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {120 i b x \operatorname {PolyLog}\left (4,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {(240 i b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (4,-e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^4}-\frac {(240 i b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (4,e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^4} \\ & = \frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {120 i b x \operatorname {PolyLog}\left (4,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {120 i b x \operatorname {PolyLog}\left (4,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {(240 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (5,-e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^5}+\frac {(240 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (5,e^{i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^5} \\ & = \frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {120 i b x \operatorname {PolyLog}\left (4,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {120 i b x \operatorname {PolyLog}\left (4,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {(240 i b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(5,-x)}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6}-\frac {(240 i b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(5,x)}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6} \\ & = \frac {a x^3}{3}-\frac {4 b x^{5/2} \text {arctanh}\left (e^{i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {10 i b x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {10 i b x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {40 b x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {120 i b x \operatorname {PolyLog}\left (4,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {120 i b x \operatorname {PolyLog}\left (4,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^4}+\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {240 b \sqrt {x} \operatorname {PolyLog}\left (5,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {240 i b \operatorname {PolyLog}\left (6,-e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6}-\frac {240 i b \operatorname {PolyLog}\left (6,e^{i \left (c+d \sqrt {x}\right )}\right )}{d^6} \\ \end{align*}
Time = 0.38 (sec) , antiderivative size = 333, normalized size of antiderivative = 1.05 \[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^3}{3}+\frac {2 b \left (d^5 x^{5/2} \log \left (1-e^{i \left (c+d \sqrt {x}\right )}\right )-d^5 x^{5/2} \log \left (1+e^{i \left (c+d \sqrt {x}\right )}\right )+5 i d^4 x^2 \operatorname {PolyLog}\left (2,-e^{i \left (c+d \sqrt {x}\right )}\right )-5 i d^4 x^2 \operatorname {PolyLog}\left (2,e^{i \left (c+d \sqrt {x}\right )}\right )-20 d^3 x^{3/2} \operatorname {PolyLog}\left (3,-e^{i \left (c+d \sqrt {x}\right )}\right )+20 d^3 x^{3/2} \operatorname {PolyLog}\left (3,e^{i \left (c+d \sqrt {x}\right )}\right )-60 i d^2 x \operatorname {PolyLog}\left (4,-e^{i \left (c+d \sqrt {x}\right )}\right )+60 i d^2 x \operatorname {PolyLog}\left (4,e^{i \left (c+d \sqrt {x}\right )}\right )+120 d \sqrt {x} \operatorname {PolyLog}\left (5,-e^{i \left (c+d \sqrt {x}\right )}\right )-120 d \sqrt {x} \operatorname {PolyLog}\left (5,e^{i \left (c+d \sqrt {x}\right )}\right )+120 i \operatorname {PolyLog}\left (6,-e^{i \left (c+d \sqrt {x}\right )}\right )-120 i \operatorname {PolyLog}\left (6,e^{i \left (c+d \sqrt {x}\right )}\right )\right )}{d^6} \]
[In]
[Out]
\[\int x^{2} \left (a +b \csc \left (c +d \sqrt {x}\right )\right )d x\]
[In]
[Out]
\[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\int { {\left (b \csc \left (d \sqrt {x} + c\right ) + a\right )} x^{2} \,d x } \]
[In]
[Out]
\[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\int x^{2} \left (a + b \csc {\left (c + d \sqrt {x} \right )}\right )\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 956 vs. \(2 (246) = 492\).
Time = 0.29 (sec) , antiderivative size = 956, normalized size of antiderivative = 3.03 \[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\int { {\left (b \csc \left (d \sqrt {x} + c\right ) + a\right )} x^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^2 \left (a+b \csc \left (c+d \sqrt {x}\right )\right ) \, dx=\int x^2\,\left (a+\frac {b}{\sin \left (c+d\,\sqrt {x}\right )}\right ) \,d x \]
[In]
[Out]